How to get client machine ip address in custom realm? [on hold]

Posted by Sumit on Programmers See other posts from Programmers or by Sumit
Published on 2013-10-28T11:01:04Z Indexed on 2013/10/28 16:14 UTC
Read the original article Hit count: 304

Filed under:

I want to get client machine ip address in my custom Realm when client attempt to login basically here is detail requirement of project

User having role 'Admin' can add new users and assign multiple roles and permission ,and at the same time specify list of ip address and countries to restrict them to access website. All these information i am storing in database.

So basically till now i am using shiro default 'authc' filter but now i want ip address of client machine and get country from where request is coming and check it against database and then and then only allow access to website.

Any help..?

Thanks and regards

© Programmers or respective owner

Related posts about java